﻿<controls:ChildWindow x:Class="VAdvantage.Framework.VDocAction"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="384" Height="154" 
           Title="VDocAction" xmlns:my="clr-namespace:VAdvantage.Controls">
    <Grid>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="180" />
            <ColumnDefinition Width="198*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <my:VLabel HorizontalAlignment="Right" Margin="0,10,0,9" x:Name="vlblAction" VerticalAlignment="Center" Content="Document Action" />
        <my:VLabel Grid.Row="1" x:Name="vlblMessage" Content="Document No" Grid.ColumnSpan="2" Background="Silver" />
        <my:VComboBox Grid.Column="1" x:Name="vcmbAction" Margin="5,5,5,5" SelectionChanged="vcmbAction_SelectionChanged" />
            <Button Height="35" HorizontalAlignment="Right" Margin="0,4,45,0" Name="ibtnCancel" VerticalAlignment="Top" Width="35" Grid.Row="2" Grid.Column="1" Click="ibtnCancel_MouseLeftButtonUp">
                <Image  Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"  />
            </Button>
            <Button Height="35" HorizontalAlignment="Right" Margin="0,4,5,0" Name="ibtnOk" VerticalAlignment="Top" Width="35" Grid.Row="2" Grid.Column="1" Click="ibtnOk_MouseLeftButtonUp" >
                <Image  Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill" />
            </Button>
            <Button Height="35" HorizontalAlignment="Left" Margin="0,5,114,0" Name="ibtnBackground"  VerticalAlignment="Top" Width="35" Grid.Row="2" Click="ibtnBackground_MouseLeftButtonUp">
                <Image  Source="/VAdvantage;component/Images/new.png" Stretch="Fill" />
            </Button>
        </Grid>
        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>
        
    </Grid>
    
</controls:ChildWindow>